package com.weiqiao.mall.service.mapper;

import com.weiqiao.mall.domain.ShopkeeperEntity;
import com.weiqiao.mall.service.vo.AddressVO;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

import java.util.List;

@Mapper(componentModel = "spring", uses = {}, unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface AddressMapper {

    /**
     * AddressVO转换为ShopkeeperEntity.AddressManagement
     *
     * @param addressVO
     * @return
     */
    ShopkeeperEntity.AddressManagement toDto(AddressVO addressVO);

    /**
     * List<AddressVO>转换为List<ShopkeeperEntity.AddressManagement>
     *
     * @param addressVO
     * @return
     */
    List<ShopkeeperEntity.AddressManagement> toDto(List<AddressVO> addressVO);
}
